<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>
<!-- v-model 多选 -->

<body>
    <div id="app">
        <div>
            <h3>下拉单选</h3>
            <p>选择所在的城市：</p>
            <select name="city" id="" v-model="city">
                <option value="上海">上海</option>
                <option value="成都">成都</option>
                <option value="北京">北京</option>
                <option value="广州">广州</option>
                <option value="武汉">武汉</option>
            </select>
            <p>选择的城市是：{{city}}</p>
        </div>

        <div>
            <h3>下拉多选</h3>
            <p>选择所在的城市：</p>
            <select multiple name="cities" id="" v-model="cities">
                <option value="上海">上海</option>
                <option value="成都">成都</option>
                <option value="北京">北京</option>
                <option value="广州">广州</option>
                <option value="武汉">武汉</option>
            </select>
            <p>选择的城市是：{{cities}}</p>
        </div>
    </div>
    <script src="js/vue.js"></script>

    <script>
        const HelloVue = {
            data() {
                return {
                   city:'上海',
                   cities:[]
                }
            },
            computed: {
            },
            methods: {
            }
        };

        const app = Vue.createApp(HelloVue).mount("#app");
    </script>
</body>

</html>